<?php
// +----------------------------------------------------------------------
// | 票付通演出类场馆列表
// +----------------------------------------------------------------------
// | Author: TongBC <501468940@qq.com>
// +----------------------------------------------------------------------
// | Date  : 2015/06/10
// +----------------------------------------------------------------------
// | www.12301.cc/pft_show.html?m=venue_list
// +----------------------------------------------------------------------
include_once '/var/www/html/new/d/module/common/Db.class.php';
$dbConf = include '/var/www/html/new/d/module/common/db.conf.php';// 远端服务器配置信息

use \PFT\Db;
Db::Conf($dbConf['remote_1']);


include 'PftShow.class.php';
$pdo = Db::Connect();
$obj = new \PFT\Show\PftShow($pdo);

//选择该场馆已有的日期
$sql = "SELECT use_date FROM pft_round WHERE venus_id=? AND status=0 GROUP BY use_date";
$stmt = $pdo->prepare($sql);
$stmt->execute(array($venus_id));
$json = array();
while($row=$stmt->fetch(PDO::FETCH_ASSOC)) {
    if (!$row['use_date'] || $row['use_date']=='0000-00-00') continue;
    $json[] = $row['use_date'];
}
include ROOT_PATH . 'tpl/pft_show/round_create.html';